package com.cn.netbroadcast;

/**
 * 判断网络连接状态
 * 
 * @author Administrator
 * 
 */
public class Application extends android.app.Application {

	 private static Application mApplication;
	    public static int mNetWorkState;

	    public static synchronized Application getInstance() {
	        return mApplication;
	    }

	    @Override
	    public void onCreate() {
	        super.onCreate();
	        mApplication = this;
	        initData();
	    }

	    public void initData() {
	        mNetWorkState = NetUtil.getNetworkState(this);
	    }
	}